To extract lines matching a pattern, add a
Special Menu\Retain
Matching Lines filter (note - any non-matching lines are discarded, so you
can't really use 2 Retain Matching Lines filters in a row. Instead, use an or
'|' operator in the pattern match)
Set the Output filter
to write all data to a new output file
Click the [Go] button.
Fix CSV-delimited files
Drag and drop your files or folders to anywhere in TextPipe's window. They
will get added to the Files to
Process tab
In the Trial Run Area, enter the text 'select * from tablename',
where tablename is the name of your table
Set the Input filter
to Input from Trial Run Input
Set the Output filter
to write all data to a new output file
Click the [Go] button.
You may wish to customize the output with additional search/replace filters.
Text and data mining
See the sample filter
html\data mine html tables.fll for an example of converting a web page
to a CSV file for import into Excel. This uses the Extract option of
the Search and Replace
filter.
Extract email addresses
Drag and drop your files to anywhere in TextPipe's window. They
will get added to the Files to
Process tab
Set the Output filter
to write all data to a new output file
Click the [Go] button.
Other tasks
To add a filter, choose one from the menu. It will automatically be added to
the filter list. Below are some common filtering operations and where to find
the appropriate filter in the menus.
Common
operations
Filter to
use:
Find an HTML tag
Use
Replace Menu\Find pattern (perl style). Ensure that pattern matching is
enabled using the drop down list, and that Minimal matching is specified in
the advanced [...] dialog, then enter a search string like this:
<a[^>]*>
This will find all <a> tags. The [^>] means 'find any character except a
'>', and the * means 'find 0 or more characters like this one.
Find text within an HTML tag e.g.
<a....height="130"....>
Use Replace
Menu\Find inside an HTML tag. Ensure that pattern
matching is enabled using the drop down list, and that Minimal matching is
specified in the advanced [...] dialog, then enter a search string like
this:
<a[^>]*>
This will find all <a...> tags. Now add a
sub filter to perform
the real search and replace on the text found inside the tags.
Find text between HTML tags e.g.
<a....>......</a>
Use
Replace Menu\Find pattern.
Ensure that
Minimal matching is specified in the advanced [...] dialog, then enter a
search string like this:
<a[^>]*>.*</a>
This will find all <a>...</a> tags. Now add a
sub filter to perform
the real search and replace on the text found between the tags.
This is similar to the Unix command
head and tail, use the
Remove Menu/Remove start
or end of file filter to remove lines or characters from the start or
end of the file.
After the filter is added to the filter list, you can click it to display
options in the right hand side of the window. Each filter can be tailored in
this manner.